Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| |||||||||||
Java EE - Interview Questions and Answers for 'Deployment descriptor' - 3 question(s) found - Order By Newest | |||||||||||
Frequently asked. Among first few questions in the J2EE segment of interview. | |||||||||||
| |||||||||||
Ans. Deployment Descriptor which is usually web.xml is used to specify the classes, resources and configuration of the application and how the web server uses them to serve web requests.This file is usually added to WEB-INF folder and contains following * Servlet entries and url mapping * Plugins * Some info regarding authentication / filters * Landing Page * Event Handlers | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  web.xml   servlets  deployment descriptor Asked in 15 Companies basic   frequent | |||||||||||
Try 1 Question(s) Test | |||||||||||
Related Questions | |||||||||||
Which of the following file is called deployment descriptor ? a. application.xml b. project.xml c. web.xml d. build.xml | |||||||||||
Can we have multiple servlets in a web application and How can we do that ? | |||||||||||
Is there any relationship between Web.xml and Spring.xml ? | |||||||||||
What is the difference between filter and filter-mappings xml tag within deployment descriptor ? | |||||||||||
| |||||||||||
Ans. No, there is no relationship between web.xml and spring.xml but you have to configure spring.xml in web.xml in order initialize beans when application starts up | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  spring  web.xml  spring.xml  deployment descriptor Asked in 1 Companies | |||||||||||
Related Questions | |||||||||||
Explain Flow of Spring MVC ? | |||||||||||
What are the benefits of using Spring Framework ? | |||||||||||
What is MVC ? | |||||||||||
How spring boot works ? | |||||||||||
What is the difference between Singleton and Prototype Bean scope in Spring ? | |||||||||||
How can we manage Error Messages in the web application ? | |||||||||||
Difference between Java beans and Spring Beans ? | |||||||||||
What bean scopes does Spring support? Explain them. | |||||||||||
What are some differences between Spring caching and Hibernate caching? | |||||||||||
Can we have two beans with same class with different bean id in spring ? | |||||||||||
| |||||||||||
Ans. filter tag speficies the filter name and respective class for handling filter action whereas filter mapping maps the filter to the url patterns ( specifying the url that needs to be intercepted ) | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  deployment descriptor  web.xml  filters  filter mapping | |||||||||||
Related Questions | |||||||||||
What is a Servlet Filter ? | |||||||||||
What are the advantages of Spring interceptor over Servlet Filters ? | |||||||||||
What is the need for filters in Java Servlets ? | |||||||||||
Can you explain filter and collectors in java 8 ? | |||||||||||
how are filters added to expressions? | |||||||||||
what kind of filters did you worked with ? | |||||||||||
| |||||||||||